home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
OS
/
ZExitAction.h
< prev
next >
Wrap
Text File
|
1997-04-13
|
971b
|
43 lines
/*
* File: ZExitAction.h
* Summary: Mixin for objects that need to do cleanup when the app exists abnormally.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <1> 4/13/97 JDJ Created
*/
#pragma once
// ===================================================================================
// class MExitAction
// ===================================================================================
class MExitAction {
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~MExitAction();
MExitAction();
//-----------------------------------
// API
//
public:
static void DoExitActions();
// Called by FragTerm when app exits abnormally (eg via ExitToShell,
// exit, abort, etc).
protected:
virtual void OnAbnormalExit() = 0;
};